package many_thread;

public class MyLockTest {
    public static void main(String[] args) {
        // 公用资源
        MyLock myLock = new MyLock();
        new Thread(myLock,"线程1").start();
        new Thread(myLock,"线程2").start();
        new Thread(myLock,"线程3").start();
    }
}
